﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="billnoone.aspx.cs" Inherits="MxWeiXinPF.Web.weixin.jiaoshuifei.billnoone" %>

<!DOCTYPE html>

<html>
<head runat="server">
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">

    <link href="css/weui.min.css?v=2" rel="stylesheet" />
    <link href="css/jquery-weui.min.css" rel="stylesheet" />
    <link href="css/demos.css" rel="stylesheet" />


    <title>缴费账单</title>
</head>
<body ontouchstart>

 

    <div class="weui-cells weui-cells_form">

        <div class="weui-cell">
            <div class="weui-cell__hd">
                <label class="weui-label">用户号</label>
            </div>
            <div class="weui-cell__bd">
                <input class="weui-input" id="usernumber" placeholder="请输入用户号" type="number" />
            </div>
        </div>
    </div>
     <div class='demos-content-padded'>
        <a class="weui-btn weui-btn_primary" href="javascript:" id="showTooltips" onclick="next()">提交</a>
    </div>

     <div class='demos-content-padded'>
        <div class="icon-box">

            <div class="icon-box__ctn">
                <h3 class="icon-box__title"><i class="weui-icon-info-circle"></i>温馨提示</h3>
                <p class="icon-box__desc">
                     <%=tips %>
                </p>
            </div>
        </div>
    </div>


  <div class='demos-content-padded'>
        <a class="weui-btn weui-btn_plain-primary" href="bindone.aspx?wid=<%=wid %>">绑定户号</a>
    </div>

    <script src="//cdn.bootcss.com/jquery/3.2.1/jquery.min.js"></script>
    <script src="js/jquery-weui.js"></script>
    <script>

        //下一步
        function next() {
            var usernumber = $('#usernumber').val();
            if (usernumber == null || usernumber == "") {

                $.toptip('请输入用户号');
                return;
            }
            //验证通过
            $.ajax({
                type: "post",
                url: "jsf_bindOne.ashx",
                data: { usernumber: usernumber, actionType: "GetUserNameByconsno", wid: '<%=wid%>', openid: '<%=openid%>' },
                beforeSend: function () {
                    $.showLoading();

                },
                success: function (data) {
                    if (data.succuss == 1) {
                        window.location.href = "billdetail.aspx?wid=" + '<%=wid%>' + "&consno=" + usernumber + "&consname=" + data.msg;
                    }
                    else {
                        $.hideLoading();
                        $.toptip(data.msg);
                    }
                }
            });
        }
    </script>
</body>
</html>
